package nccloud.arap.bill.earninghvo.action;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import nc.vo.pub.BusinessException;
import nccloud.framework.web.action.itf.ICommonAction;
import nccloud.framework.web.container.IRequest;
import nccloud.itf.arap.bill.IEarninghvoMaintain;

public class EarningGetOrgMapAction implements ICommonAction {

	@Override
	public Object doAction(IRequest request) {
		
		
		String json = request.read();
		JSONObject jsonObject=JSONObject.parseObject(json);
		
		Map<String, String> result = new HashMap<String, String>();
		
		
		IEarninghvoMaintain eImpl =nccloud.framework.service.ServiceLocator.find(IEarninghvoMaintain.class);
		try {
			result=eImpl.getOrgMap( jsonObject.getString("value"));
		} catch (BusinessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return result;
	}

}
